<template>
    <div>
            concant
            <button @click="upState">111111111</button>
    </div>
</template>

<script>
    export default {
        mounted(){
            console.log(this.$store.state.username)
        },
        methods: {
            upState(){
                this.$store.commit('upState', 'action')
            }
        }
    }
</script>

<style scoped>

</style>